$(function () {
    layui.use(['form', 'layedit', 'laydate'], function() {
        var form = layui.form
            , layer = layui.layer
            , layedit = layui.layedit
            , laydate = layui.laydate;

        //日期
        laydate.render({
            elem: '#date'
        });
    });
})
function submitWeiji() {
    let data1 = {
        name:$("#personnelName").val(),
        because:$("#weijiBecause").val(),
        time:$("#date").val(),
    }
    let result = myAjax("/weiji/weijiAdd",data1,"post");
    if (result.result==1){
        alert("添加成功");
    }else {
        alert("添加失败");
    }
}